﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Beeldbankmvc.Helpers;
using Beeldbankmvc.Models;

namespace Beeldbankmvc.ViewModels
{
    public class KeyWordViewModel
    {
        KeyWordRepository KeyWordRepository = new KeyWordRepository();

        public BEELDBANK_WORD KeyWord { get; private set; }

        public KeyWordViewModel(BEELDBANK_WORD keyWord)
        {
            KeyWord = keyWord;
        }

        public String UpdateStats()
        {
            return KeyWordRepository.UpdateStats(KeyWord.Word);
        }
    }
}